.publicWorksheetConfig {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;

  .worksheetConfigHeader {
    position: relative;
  }

  .publicWorksheetConfigCon {
    height: 100%;
  }

  .publicWorksheetEnablePanel {
    margin: 15px auto;
    width: 800px;
    background-color: #fff;
    border-radius: 4px;
    padding: 28px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.16);
    h1 {
      margin: 0;
      line-height: 1em;
      font-size: 17px;
      font-weight: bold;
    }
    .description {
      margin: 10px 0;
      line-height: 28px;
      font-size: 13px;
      color: #9e9e9e;
    }
    .status {
      vertical-align: text-top;
      margin-left: 8px;
    }
    .Button {
      font-weight: 500;
    }
  }

  .publicWorksheetConfigPanel {
    z-index: 2;
    width: 300px;
    box-shadow: 0px 4px 8px #00000029;
    background-color: #fff;

    .publishSwitch {
      margin-left: 12px;
      width: 35px;
      height: 18px;
      vertical-align: middle;

      .dot {
        width: 14px;
        height: 14px;
      }

      &.Switch--on {
        background-color: #4caf50;

        .dot {
          left: 18px;
        }
      }
    }

    .publicConfig {
      height: 100%;
      padding: 0 20px;

      .icon-refresh1 {
        &:hover {
          color: #2196f3 !important;
        }
      }
    }
  }

  .publicWorksheetConfigForm {
    position: relative;
    overflow: auto;
    overflow-x: hidden;

    .customTitle {
      display: none;
    }

    .formContent {
      position: relative;
      overflow: hidden;
      width: 800px;
      margin: 200px auto 50px;
      border-radius: 3px;
      padding: 0 2px;

      .formContentHeader {
        background: #fff;
        padding: 0 20px;
      }

      .icon-workflow_hide,
      .icon-visibility_off {
        display: none;
      }

      .worksheetName {
        line-height: 1.2em;
        font-size: 36px;
        font-weight: 500 !important;
        margin: 20px 0 6px;

        input,
        textarea {
          font-weight: 500 !important;
        }
      }

      .worksheetDescription {
        padding: 10px 20px;

        .mdEditor {
          .mdEditorContent {
            max-height: 100%;

            img {
              max-width: 100%;
            }
          }
        }

        .customFormControlBox {
          line-height: 21px;
          box-sizing: border-box;
          font-size: 13px;
          border-radius: 4px;
          width: 100%;
          outline: none;
          -webkit-appearance: none;

          &.customFormEditor {
            padding: 0 12px;
            height: auto;
            background: #fff !important;
            border: 1px solid #2196f3 !important;
          }
        }
      }
    }
  }

  .promptText {
    padding: 12px 10px;
    background: rgba(254, 249, 233, 1);
    color: #757575;
    line-height: 22px;
    font-weight: 700;
  }
}

.publicWorksheetForm.customWidgetForWorksheetWrap {
  position: relative;

  #dragPreview {
    position: fixed !important;
  }

  .nano-content {
    position: relative !important;
  }
  .rowsWrap {
    box-shadow: none !important;
    border-radius: 0 0 3px 3px;
  }
  .tabItemWrap {
    box-shadow: none !important;
  }
  .tabHeaderContent {
    .switchStyleWrap {
      display: none;
    }
  }
}

.queryConfigControlsDropdown {
  .Dropdown--input {
    padding: 2px 10px !important;
    height: auto !important;
    min-height: 36px;
  }
}

#publicConfig_extendInput::placeholder {
  color: #bdbdbd;
}

.rotate {
  animation: rotate 1s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.publicConfigSettingDrawer {
  .ant-drawer-header {
    background: #f8f8f8;
    border-bottom: 0;
    padding: 24px 24px 16px;
    .ant-drawer-header-title {
      flex-direction: row-reverse;
      .ant-drawer-close {
        padding: 0;
        margin-top: -24px;
        margin-right: -12px;
      }
    }
  }
  .ant-drawer-body {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
    .headerTab {
      background: #f8f8f8;
    }
    .settingContent {
      padding: 0 24px 22px;
      flex: 1;
      overflow: auto;

      .customFormControlBox {
        line-height: 21px;
        box-sizing: border-box;
        font-size: 13px;
        border-radius: 4px;
        width: 100%;
        outline: none;
        -webkit-appearance: none;
        min-height: 90px;
        max-height: 700px;
        border: 1px solid #ddd;
        padding: 0 12px;

        &.customFormEditor {
          height: auto;
          background: #fff !important;
          border: 1px solid #2196f3 !important;
          min-height: 250px;
          max-height: 700px;
        }

        .mdEditorContent {
          img {
            max-width: 100%;
          }
        }
      }
      .codeContent {
        display: flex;
        align-items: center;
        margin: 10px 0px 0 44px;
        .Dropdown {
          width: 240px;
          &.deleteCode {
            .Dropdown--border {
              border-color: #f44336;
              background-color: #fff2f4;
            }
          }
        }
      }

      .commonMargin {
        margin: 16px 0px 0 44px;

        .monthDropdown {
          width: 320px;
          .Dropdown--input {
            height: 32px;
          }
        }
        .mRight4 {
          margin-right: 4px;
        }
        .limitInput {
          width: 80px;
          height: 32px;
          margin-left: 8px;
          margin-right: 8px;
        }
        .effectiveTimeDropdown {
          width: 180px;
          margin-left: 5px;
          .Dropdown--border {
            height: 32px;
          }
          .ming.Menu {
            min-width: 100%;
            width: unset;
          }
        }
      }
      .passwordInput {
        width: 380px;
        font-size: 13px;
        border-color: #ddd;
      }
      .ant-picker {
        width: 380px;
        height: 36px;
        border-radius: 4px !important;
        border-color: #ddd;
        box-shadow: none;
        &:hover,
        &.ant-picker-focused {
          border-color: #2196f3;
        }
      }
      .Width380 {
        width: 380px;
      }
      .ming.Radio {
        margin-right: 32px;
      }
    }
    .footer {
      min-height: 66px;
      justify-content: flex-end;
      padding: 10px 24px 20px;
      text-align: left;
    }
  }
}

.customFieldDropdown {
  width: 380px;
  .ming.Menu {
    width: 320px;
    padding: 12px 0;

    .customFieldSearch {
      &.ming.MenuItem {
        .Item-content {
          &:hover {
            color: #333 !important;
            background: #fff !important;
          }
        }
        .itemText {
          border-bottom: 1px solid #ddd;
        }
      }
      .searchInput {
        width: 100%;
        background: #fff;
        border-radius: 0;
        padding: 0;
      }
    }
  }
}

.mappingSection {
  margin-top: 20px;
  .fieldText {
    width: 100%;
    display: inline-block;
    height: 36px;
    line-height: 36px;
    background: #f4f4f4;
    padding: 0 12px;
    font-weight: 500;
    border-radius: 4px;
  }
}
